﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
//Additional
using System.Runtime.Serialization;

namespace DO.Common.Messages
{
    [DataContract]
    public sealed class ResponseDTO: IResponseDTOEnvelop
    {
        public ResponseDTO() : this(0) { }

        public ResponseDTO(long entityIdentity)
        {
            ResponseInstance = new Response(entityIdentity);
        }

        [DataMember] /*Apply attribute here since it is a readonly member below*/
        private readonly Response ResponseInstance;

        public Response Response 
        {
            get { return ResponseInstance; }
        }
    }
}
